import axios from '@/libs/request/axios'

// 通过模板id查詢产品原子信息
export const getVueInfo = (params) => {
    return axios.request({
        url: '/product/productPlan/getVueInfo',
        data:params,
        method: 'post'
    })
}
//  查询产品原型信息
export const queryProductPrototypeList = (params) => {
    return axios.request({
        url: '/product/productPlan/queryProductPrototypeList',
        data:params,
        method: 'post'
    })
}
//  查询产品原型信息
export const queryProductProposalList = (params) => {
    return axios.request({
        url: '/product/productPlan/queryProductProposalList',
        data:params,
        method: 'post'
    })
}

// 添加产品原型信息
export const saveProductParameters = (params) => {
    return axios.request({
        url: '/product/productPlan/saveProductParameters',
        data:params,
        method: 'post'
    })
}
// 保存产品原型信息
export const savePrototype = (params) => {
    return axios.request({
        url: '/product/productPlan/savePrototype',
        data:params,
        method: 'post'
    })
}
// 暂存产品原型信息
export const temporaryStorage = (params) => {
    return axios.request({
        url: '/product/productPlan/temporaryStorage',
        data:params,
        method: 'post'
    })
}
// 保存产品方案信息
export const saveProductProposal = (params) => {
    return axios.request({
        url: '/product/productPlan/saveProductProposal',
        data:params,
        method: 'post'
    })
}
// 保存产品方案信息
export const temporaryStorageProposal = (params) => {
    return axios.request({
        url: '/product/productPlan/temporaryStorageProposal',
        data:params,
        method: 'post'
    })
}

// 设置产品原型有效
export const effective = (params) => {
    return axios.request({
        url: '/product/productPlan/effective',
        params:params,
        method: 'post'
    })
}
// 设置产品原型无效
export const invalid = (params) => {
    return axios.request({
        url: '/product/productPlan/invalid',
        params:params,
        method: 'post'
    })
}
// 设置产品原型信息
export const getPlanInfo = (params) => {
    return axios.request({
        url: '/product/productPlanData/getPlanInfo',
        params:params,
        method: 'post'
    })
}
// 查询产品原型信息
export const getPrototypeInfo = (params) => {
    return axios.request({
        url: '/product/productPlan/getPrototypeInfo',
        params:params,
        method: 'get'
    })
}
// 复制产品原型信息
export const copyPrototype = (params) => {
    return axios.request({
        url: '/product/productPlan/copyPrototype',
        params:params,
        method: 'post'
    })
}
// 查询产品修改信息
export const getUpdateInfo = (params) => {
    return axios.request({
        url: '/product/productPlanData/getUpdateInfo',
        params:params,
        method: 'post'
    })
}

// 修改子产品状态
export const updateStatus = (params) => {
    return axios.request({
        url: '/product/productPlan/updateStatus',
        params:params,
        method: 'post'
    })
}
